package com.enterprise.viewer.client.view;

import com.enterprise.viewer.client.presenter.RootPresenter;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.StackLayoutPanel;
import com.google.gwt.user.client.ui.Widget;


public class RootView extends Composite implements RootPresenter.Display{
	private static RootViewUiBinder uiBinder = GWT.create(RootViewUiBinder.class);

	interface RootViewUiBinder extends UiBinder<Widget, RootView> {
	}

	@UiField Label header;
	@UiField Label footer;	
	@UiField StackLayoutPanel navbar;
	@UiField HorizontalPanel buttonbar;
	@UiField Masonry masonry;

	public RootView() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@Override
	public Label getHeader() {
		return header;
	}

	@Override
	public Label getFooter() {
		return footer;
	}

	@Override
	public Widget asWidget() {
		return this;
	}

	@Override
	public StackLayoutPanel getNavBar() {
		return navbar;
	}

	@Override
	public HorizontalPanel getButtonBar() {
		return buttonbar;
	}

	@Override
	public Masonry getMasonry() {
		return masonry;
	}
}
